package com.app.model;




import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.sql.Timestamp;
import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("lm_user")
@JsonInclude(JsonInclude.Include.NON_NULL)

public class AdminUserModel {
    @TableId(type = IdType.AUTO)
    private Integer id;
    private Integer departmentId;//部门ID
    private String account;//账号
    private String pwd;//密码
    private String realName;//真实姓名
    private String ipAddress;//ip地址
    private String macAddress;//mac地址
    private Integer roles;//角色ID
    private String lastIp;//最近登录ip
    private Timestamp lastLoginTime;//最近登录ip
    private Integer status;//管理员状态
    private Integer personId;//管理员状态
    private Timestamp createTime;
    private Timestamp updateTime;

    @TableField(exist = false)
    private List<String> permissionList;//权限数组
    @TableField(exist = false)
    private String RoleName;//角色名称
    @TableField(exist = false)
    private String token;
    @TableField(exist = false)
    private String departmentName;
    @TableField(exist = false)
    private String lastLoginTimeText;
    @TableField(exist = false)
    private Boolean isMessage;
    @TableField(exist = false)
    private Integer messageCount;
    @TableField(exist = false)
    private String password;
    @TableField(exist = false)
    private Integer re;
}
